package com.wyzz.hr.pojo;

import java.util.List;
import java.util.Map;

import com.wyzz.hr.base.ComonBeans;
import com.wyzz.hr.pojo.base.BaseOutmatchBasic;

public class OutmatchBasic extends BaseOutmatchBasic {

	public OutmatchBasic() {
	}

	public OutmatchBasic(String ombId) {
		super(ombId);
	}

	public OutmatchBasic(String ombId, Iodef ombIo, String ombFieldName,
			Integer ombCanGroup, String ombDataType, String ombFieldDesc,
			Integer ombSortId, Integer ombColumnWidth) {
		super(ombId, ombIo, ombFieldName, ombCanGroup, ombDataType,
				ombFieldDesc, ombSortId, ombColumnWidth);
	}

	public void setAllMaps() {
		ombDataTypeMap = ComonBeans.getValuesToMap(PROP_OMB_DATA_TYPE,
				new boolean[0]);
		ombCanGroupMap = ComonBeans.getValuesToMap("yesOrNo", new boolean[0]);
		formatDesc = ComonBeans.getParameterValue(PROP_OMB_FORMAT,
				new String[] { super.getOmbDataType() });
	}

	public void setOmbCanGroup(Integer ombCanGroup) {
		super.setOmbCanGroup(ombCanGroup);
		if (ombCanGroup != null)
			ombCanGroupMean = ComonBeans.getParameterValue("yesOrNoImg",
					new String[] { ombCanGroup.toString() });
		else
			ombCanGroupMean = null;
	}

	public Map getOmbDataTypeMap() {
		return ombDataTypeMap;
	}

	public Map getOmbCanGroupMap() {
		return ombCanGroupMap;
	}

	public String getOmbCanGroupMean() {
		return ombCanGroupMean;
	}

	public List getOmList() {
		return omList;
	}

	public void setOmList(List omList) {
		this.omList = omList;
	}

	public String getFormatDesc() {
		return formatDesc;
	}

	private static final long serialVersionUID = 1L;
	private String ombCanGroupMean;
	private String formatDesc;
	private Map ombDataTypeMap;
	private Map ombCanGroupMap;
	private List omList;
}
